public class PrintCharDemo2 extends Thread {

    private char c;
    private int times;

    public PrintCharDemo2(){

    }

    public PrintCharDemo2(char c , int times){
        this.c = c;
        this.times = times;
    }

    @Override
    public void run() {
        for(int i = 0 ; i<times ; i++){
            System.out.println(c);
        }
    }
}
